package com.my.screenadapter.rvcommon.ListDemo;

import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.widget.ListView;

import com.my.screenadapter.Base.BaseActivity;
import com.my.screenadapter.Base.MultiItemTypeAdapter;
import com.my.screenadapter.Model.ChatMessage;
import com.my.screenadapter.R;

import java.util.List;

import butterknife.BindView;

/**
 * Created by 张英杰 on 2016/11/16.
 */
public class MultiItemListViewActivity extends BaseActivity {

    @BindView(R.id.id_listview_list)
    ListView mListView;

    @Override
    protected void init() {
        mListView.setDivider(null);
        mListView.setAdapter(new ChatAdapter(this, ChatMessage.MOCK_DATAS));
    }

    @Override
    protected int initLayoutId() {
        return R.layout.activity_listfirst;
    }

    class ChatAdapter extends MultiItemTypeAdapter<ChatMessage> {

        public ChatAdapter(Context mContext, List<ChatMessage> mDatas) {
            super(mContext, mDatas);

        }
    }
}
